package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 省市县，三级联动
 * </p>
 *
 * @author mds
 * @since 2023-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="GdArea对象", description="省市县，三级联动")
public class GdArea extends Model<GdArea> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增")
      @TableId(value = "area_id", type = IdType.AUTO)
    private BigDecimal areaId;

    @ApiModelProperty(value = "地区代码")
    private String areaCode;

    @ApiModelProperty(value = "地区名称")
    private String areaName;

    @ApiModelProperty(value = "父代码")
    private String areaParent;

    @ApiModelProperty(value = "树节点代码")
    private String areaNodecode;

    @ApiModelProperty(value = "1：省 2：市 3：区")
    private BigDecimal areaType;

    @ApiModelProperty(value = "纬度")
    private BigDecimal lat;

    @ApiModelProperty(value = "经度")
    private BigDecimal lng;

    @ApiModelProperty(value = "简称")
    private String prJc;

    @ApiModelProperty(value = "国家")
    private String country;

    @ApiModelProperty(value = "区域（如：华东）")
    private String areaCat;

    @ApiModelProperty(value = "国别标记： 1 - 国内 2 - 国外")
    private BigDecimal inCountry;

    @ApiModelProperty(value = "业务代码预留1")
    private String refCode1;

    @ApiModelProperty(value = "业务代码预留2")
    private String refCode2;

    @ApiModelProperty(value = "业务代码预留3")
    private String refCode3;

    @ApiModelProperty(value = "业务代码预留4")
    private String refCode4;

    @ApiModelProperty(value = "业务文本预留1")
    private String refStr1;

    @ApiModelProperty(value = "业务文本预留2")
    private String refStr2;

    @ApiModelProperty(value = "业务文本预留3")
    private String refStr3;

    @ApiModelProperty(value = "业务文本预留4")
    private String refStr4;

    @ApiModelProperty(value = "业务文本预留5")
    private String refStr5;

    @ApiModelProperty(value = "业务数字预留1")
    private BigDecimal refNum1;

    @ApiModelProperty(value = "业务数字预留2")
    private BigDecimal refNum2;

    @ApiModelProperty(value = "业务数字预留3")
    private BigDecimal refNum3;

    @ApiModelProperty(value = "业务标记预留1")
    private BigDecimal refFlag1;

    @ApiModelProperty(value = "业务标记预留2")
    private BigDecimal refFlag2;

    @ApiModelProperty(value = "业务标记预留3")
    private BigDecimal refFlag3;

    @ApiModelProperty(value = "业务标记预留4")
    private BigDecimal refFlag4;

    @ApiModelProperty(value = "业务标记预留5")
    private BigDecimal refFlag5;


    @Override
    public Serializable pkVal() {
        return this.areaId;
    }

}
